<template>
  <ContentWrap>
    <back :backOption="backOption" />
    <div class="dataBase">
      <el-tabs v-model="tabName" class="demo-tabs">
        <el-tab-pane label="机构权限" name="dept"><DeptAuthorization /></el-tab-pane>
        <el-tab-pane label="系统权限" name="system"><SysAuthorization /></el-tab-pane>
        <el-tab-pane label="标准权限" name="standard"><StandardAuthorization /></el-tab-pane>
      </el-tabs>
    </div>
  </ContentWrap>
</template>

<script setup lang="tsx">
import DeptAuthorization from './components/deptAuthorization.vue'
import SysAuthorization from './components/sysAuthorization.vue'
import StandardAuthorization from './components/standardAuthorization.vue'

const tabName = ref('dept')
const backOption = ref({
  title: '返回'
})
</script>

<style lang="scss">
.dataBase {
  .el-dropdown-link {
    cursor: pointer;
    color: var(--el-color-primary);
    display: inline-flex;
    align-items: center;
    line-height: 23px;
    padding-left: 12px;
  }
  .el-form .el-select {
    width: 100%;
  }
  :deep(.hide-expand .cell) {
    display: none;
  }
  :deep(.el-form .el-cascader) {
    width: 100%;
  }
  :deep(.operate-btn .el-button.is-text) {
    padding: 0 10px 0 0;
  }
  .el-dropdown-link:focus {
    outline: none;
  }
}
</style>
